package com.rainng.coursesystem.manager;

import com.rainng.coursesystem.model.NotificationItem;
import com.rainng.coursesystem.service.NotificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class NotificationManager {

    @Autowired
    private NotificationService notificationService;

    public List<NotificationItem> getAllNotifications() {
        return notificationService.getAllNotifications();
    }

    public NotificationItem createNotification(NotificationItem notification) {
        return notificationService.createNotification(notification);
    }

    public void deleteNotification(Long id) {
        notificationService.deleteNotification(id);
    }
}